package com.hero.jobweb.dao.ibatis;

import java.util.List;

import com.hero.jobweb.config.ExceptionKey;
import com.hero.jobweb.dao.ITbDataBaseParamDAO;
import com.hero.jobweb.entity.TbDataBaseParam;
import com.hero.jobweb.exception.BaseException;
import com.hero.web.dao.IbatisBaseDao;
import com.hero.web.entity.BaseExample;

public class TbDataBaseParamDAOImpl extends IbatisBaseDao<TbDataBaseParam, BaseExample> implements
		ITbDataBaseParamDAO {

	public int countByExample(BaseExample example) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public int deleteByExample(BaseExample example) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public int deleteByPrimaryKey(Integer id) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public void insert(TbDataBaseParam record) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);

	}

	public void insertSelective(TbDataBaseParam record) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);

	}

	public List<TbDataBaseParam> selectByExample(BaseExample example) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public List<TbDataBaseParam> selectByExamplePage(BaseExample example) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public TbDataBaseParam selectByPrimaryKey(Integer id) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public int updateByExampleSelective(BaseExample example) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public int updateByExample(BaseExample example) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public int updateByPrimaryKeySelective(TbDataBaseParam record) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}

	public int updateByPrimaryKey(TbDataBaseParam record) {
		throw new BaseException(ExceptionKey.UNSUPPORTED_OPERATION_FUN);
	}
	
	public Integer selectLastInsertId() {
		Integer lastInsertId=(Integer) this.sqlMapClientTemplate.queryForObject("tb_database_param.select_lastInsertId");
		return lastInsertId;
	}

	public Integer jtaSelectLastInsertId() {
		Integer lastInsertId=(Integer) this.getJtaSqlMapClientTemplate().queryForObject("tb_database_param.select_lastInsertId");
		return lastInsertId;
	}

}
